package de.jmda.fx.sandbox.property;

import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.beans.property.SimpleObjectProperty;

class TypeWithProperties
{
	private ObjectProperty<String> stringRW = new SimpleObjectProperty<String>();
	public String getStringRW() { return stringRW.get(); }
	public void setStringRW(String string) { this.stringRW.set(string); }
	public ObjectProperty<String> stringRWProperty() { return stringRW; }

	private ReadOnlyObjectProperty<String> stringRO = new SimpleObjectProperty<String>();
	public String getStringRO() { return stringRO.get(); }
//	public void setStringRO(String string) { this.stringRO.set(string); }
	public ReadOnlyObjectProperty<String> stringROProperty() { return stringRO; }

	public TypeWithProperties(String string)
	{
		setStringRW(string);
		stringRO = new SimpleObjectProperty<String>(string);
	}
}